FROM registry.cn-hangzhou.aliyuncs.com/bill080307/library:python-3
COPY entrypoint.py /
RUN mkdir /root/.pip \
 && echo "[global]" >> /root/.pip/pip.conf \
 && echo "index-url = https://mirrors.aliyun.com/pypi/simple" >> /root/.pip/pip.conf \
 && echo "trusted-host = mirrors.aliyun.com" >> /root/.pip/pip.conf \
 && python -m pip install --upgrade pip \
 && python -m pip install ipfshttpclient \
 && sed -i "s#0.8.0#1.0.0#g" /usr/local/lib/python3.13/site-packages/ipfshttpclient/client/__init__.py

CMD ["python", "/entrypoint.py"]

